package com.test;

/**
 * Created by 41579 on 2017/4/20.
 */
public class WaitRunnable implements Runnable{
    @Override
    public void run() {
        synchronized (this){
            try {
                wait();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(Thread.currentThread().getName()+" has been notify......");
        }
    }
}
